package hasset;
import java.util.*;
public class HashSetex {
    public static void main(String[] args) {
        HashSet hs = new HashSet<>();
        hs.add(new Employee("jack", 18));
        hs.add(new Employee("smith", 28));
        hs.add(new Employee("jack", 18));
        System.out.println(hs.size());

    }
}
class Employee{
    private String name;
    private int age;
    public Employee(String name,int age){
        this.age=age;
        this.name=name;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public String getName() {
        return name;
    }
}
